Look for xenstored with xenstore-read from PATH
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 22 Dec 2016 15:32:33 +0000 (15:32 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 22 Dec 2016 17:16:54 +0000 (17:16 +0000)
"Check that xenstored has actually started before talking to it"
invoked /usr/sbin/xenstored, which does not exist.

Absolute paths are EBW anyway.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
debian/xen-utils-common.xen.init

index 018c934405faf495e71567a4b2bf4fbe6f00d864..a153885073b5146dfdee56564bb203b380f67318 100644 (file)
@@ -257,7 +257,7 @@ xenstored_start()
        # Wait for xenstored to actually come up, timing out after 30 seconds
        local time=0
        local timeout=30
-       while [ $time -lt $timeout ] && ! `/usr/sbin/xenstore-read -s / >/dev/null 2>&1` ; do
+       while [ $time -lt $timeout ] && ! `xenstore-read -s / >/dev/null 2>&1` ; do
            time=$(( $time+1 ))
            sleep 1
        done